package com.ecnu.system.mapper;

import com.ecnu.system.domain.ProjectTeacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ecnu.system.domain.vo.ProjectUserVO;
import com.ecnu.system.domain.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * ecnu_活动_主讲人	 Mapper 接口
 * </p>
 *
 * @author zdn
 * @since 2025-03-20
 */
@Mapper
public interface ProjectTeacherMapper extends BaseMapper<ProjectTeacher> {

    /**
     * 批量插入主讲人信息
     *
     * @param teachers
     */
    int insertBatch(@Param("list") List<ProjectTeacher> teachers);

    List<UserVO> selectByPlanId(@Param("list") List<String> fileList);

    List<ProjectUserVO> getProUser(@Param("id")String id, @Param("nickName")String nickName);

    void updateByPlanId(@Param("planId")String planId);

    List<ProjectTeacher> selectListForSysUser(@Param("teacher")ProjectTeacher teacher);

    List<ProjectTeacher> selectListForSysUserList(@Param("projectIds") List<String> projectIds);
}
